import request from "@/axios";

export class userApi {
  // 登录
  static login = (params) => request.post("/adminapi/login", params);
  // 退出
  static logout = (params) =>
    request.get("/adminapi/logout", params);
  // 获取菜单
  static getMenu = (params) =>
    request.getAndLoadData("/adminapi/menu/user", params);

  // 用户新增/编辑
  static edit = (params) =>
    request.postAndLoadData("/adminapi/user/store", params);
  // 用户列表
  static page = (params) =>
    request.getAndLoadData("/adminapi/user/list", params);
  // 用户删除
  static delete = (params) =>
    request.delAndLoadData("/adminapi/user/delete", params);
}
